from PyQt4 import QtCore
from PyQt4 import QtGui


class AboutDialog(QtGui.QWidget):
    def __init__(self, parent=None):
        super(AboutDialog, self).__init__(parent)
    
        label = QtGui.QLabel("""    Copyright (C) <2010>  <JTianLing>

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.

    English Blog    : http://jtianling.blogspot.com
    Chinese Blog    : http://blog.csdn.net/vagrxie
    Group            : groups/google.com/group/jiutianfile
    MSN & E-mail    : JTianLing@GMail.com
    QQ    : 375454
""")
        mainLayout = QtGui.QGridLayout()
        mainLayout.addWidget(label, 0, 0)
        self.setLayout(mainLayout)
        self.setWindowTitle("About One Key HighLighter")
        
        self.windowIcon = QtGui.QIcon('JT.png')
        self.setWindowIcon(self.windowIcon)
        
    
if __name__ == '__main__':
    import sys
    app = QtGui.QApplication(sys.argv)
    about = AboutDialog()
    about.show()
     
    sys.exit( app.exec_() )
    